<template>
    <view v-if="showCommidty">
        <view class="img-box">
            <img :src="img_base_url + '/zanwushangpin.png'" alt="">
            <view class="text">暂无商品</view>
        </view>
    </view>
</template>

<script>
import { config } from '../../common/utils/congfig'
export default {
    props: ['showCommidty'],
    data() {
        return {
            img_base_url: config.img_base_url
        }
    }
}
</script>

<style>
    .img-box {
        width: 189rpx;
        height: 165rpx;
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translateY(-50%);
        transform: translateX(-50%);
    }
    .img-box img {
        width: 100%;
        height: 100%;
    }
    .text {
        color: #919191;
        font-size: 26rpx;
        text-align: center;
        margin-top: 50rpx;
    }
</style>